package chapter22.homework01;

public class Cat extends Subject{
    @Override
    public void cry() {
        System.out.println("猫叫...");
        for (Object obs :observers) {
            ((Observer)obs).response();//猫一直叫...
        }
    }
}
